package org.apache.dolphinscheduler.api.service;

import org.apache.dolphinscheduler.api.dto.coupon.CouponCreateRequest;
import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.Couponbill;
import org.apache.dolphinscheduler.dao.entity.Coupondetail;
import org.apache.dolphinscheduler.dao.entity.User;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 收支明细表 服务类
 * </p>
 *
 * @author denggh
 * @since 2023-08-14
 */
public interface CouponService {

    public void createCouponDetail(User loginUser, Coupondetail coupondetail);
    Result selectPageCoupondetailList(User loginUser, Integer pageSize, Integer pageNo,String couponName,Integer Type);
    Map<String, Object> deleteCouponDetailById(int couponDetailId);
    Map<String, Object> updateCouponDetail(Coupondetail coupondetail);

    Result selectCouponTotal(User loginUser, String month);
    Result selectCouponAmountTotal(User loginUser, String month);

    Coupondetail getCouponDetailById(Integer id);
}
